import { h, defineComponent } from "vue";
import { Icon } from "@iconify/vue";

/** 使用自动导入的图标时需使用的组件 */
export const ElIconfont = defineComponent({
	props: {
		icon: {
			type: String,
			required: true,
		},
	},
	render() {
		return h(Icon, {
			icon: "ep-" + this.icon.toLowerCase(),
		});
	},
});
